<!-- scenic_spot_update.html -->
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>更新景点信息</title>
    <link rel="stylesheet" href="{% static 'css/style.css' %}">
</head>
<body>
    <header>
        <h1>更新景点信息</h1>
    </header>
    <form method="POST" action="{% url 'scenic_spot_update' scenic_spot.jq_id %}">
        {% csrf_token %}
        <div>
            <label for="jq_name">景点名称:</label>
            <input type="text" id="jq_name" name="jq_name" value="{{ scenic_spot.jq_name }}">
        </div>
        <div>
            <label for="jq_city">城市:</label>
            <input type="text" id="jq_city" name="jq_city" value="{{ scenic_spot.jq_city }}">
        </div>
        <div>
            <label for="jq_address">地址:</label>
            <input type="text" id="jq_address" name="jq_address" value="{{ scenic_spot.jq_address }}">
        </div>
        <div>
            <label for="jq_rating">评分:</label>
            <input type="text" id="jq_rating" name="jq_rating" value="{{ scenic_spot.jq_rating }}">
        </div>
        <div>
            <label for="jq_type">类型:</label>
            <input type="text" id="jq_type" name="jq_type" value="{{ scenic_spot.jq_type }}">
        </div>
        <button type="submit">提交更新</button>
    </form>
    <a href="{% url 'scenic_spot_detail' scenic_spot.jq_id %}">返回详情</a>
</body>
</html>
